Show Either's "do notation" similarity to nested if-then-else statement#52
Show Either's "do notation" similarity to nested if-then-else statement#52JordanMartinez merged 2 commits intopurescript:masterfrom JordanMartinez:addDocs
Conversation
|
I think this is probably more suitable for the |
|
I agree that a more intuitive explanation of what the Bind instance does would be good, but I'm not sure pseudocode is the best way of achieving that; I think prose would probably be preferable. |
|
The reason that I prefer prose over pseudocode is mostly that not everyone is that familiar with whatever language your pseudocode is based on, and even if they were, they might not be able to work out what e.g. |
|
Not using pseudo code makes sense. However, I'm not sure how to write that without it being just as confusing. I feel like a visual of some sorts would explain this much better. Is it possible to include images in documentation? |
|
Also, I explained how the |
|
Rather than using pseudo-code, I explained it using regular PureScript. I also moved the explanation to the Bind instance. |
This move also uses PureScript to show the code that this notation ultimately produces
|
I had to force-push this because CI was not pulling in the v0.14.0-rc3 binary |
|
CI now builds. Harry, this is the same approach you previously approved regarding |
No description provided.